<!--%import("./css/editor.css")-->
<!--%import("../../tpl/js/editor_common.js")-->
<load target="./js/editor_loader.js" type='body' />
<load target="./js/xe_interface.js" type='body' />

<!-- 커스텀 -->
<load target="./_custom/custom.css" />
<!-- 끝 : 커스텀 -->

<!--@if($enable_autosave)-->
<input type="hidden" name="_saved_doc_title" value="{htmlspecialchars($saved_doc->title)}" />
<input type="hidden" name="_saved_doc_content" value="{htmlspecialchars($saved_doc->content)}" />
<input type="hidden" name="_saved_doc_message" value="{$lang->msg_load_saved_doc}" />
<!--@end-->

<!-- 에디터 시작 --> 

<!-- 에디터 컨테이너 시작 -->
<div id="tx_trex_container{$editor_seqence}" class="tx-editor-container"> 
	<!-- 사이드바 -->
	<div id="tx_sidebar{$editor_seqence}" class="tx-sidebar">
		<div class="tx-sidebar-boundary"> 
			<!-- 커스텀 -->
			<ul class="tx-bar tx-bar-left tx-nav-attach">
				<li class="tx-list" title="이미지, 동영상 등을 업로드하고, 하단의 파일창에서 파일을 선택하여 삽입합니다."> <span unselectable="on" class="tx-btn-trans component_btn" id="swfUploadButton{$editor_sequence}" style="display:inline-block"> <a href="javascript:;" title="파일" style="padding:0"><span class="tx-searcher-title ico_file" style="width:15px;background-position:-106px 6px"></span>{$lang->edit->upload_file}</a> </span> </li>
				<li class="tx-list">
					<div class="tx-btn-trans component_btn"> <a href="#" onclick="return false;" id="component_{$editor_sequence}_photo_editor" style="background-image:url(modules/editor/components/photo_editor/component_icon.gif)" title="포토에디터 사용하여 이미지를 첨부">포토에디터</a> </div>
				</li>
				<li class="tx-list">
					<div class="tx-btn-trans component_btn"> <a href="#" onclick="return false;" id="component_{$editor_sequence}_making_gallery" style="background-image:url(modules/editor/components/making_gallery/component_icon.gif)" title="갤러리를 만듭니다. 파일 첨부 후에 사용할 수 있습니다.">갤러리</a> </div>
				</li>
				<li class="tx-list">
					<div class="tx-btn-trans component_btn"> <a href="#" onclick="return false;" id="component_{$editor_sequence}_multimedia" style="background-image:url(modules/editor/components/multimedia/component_icon.gif)" title="동영상, 음악 삽입">멀티미디어</a> </div>
				</li>
				<li class="tx-list">
					<div class="tx-btn-trans component_btn"> <a href="#" onclick="return false;" id="component_{$editor_sequence}_soo_google_map" style="background-image:url(modules/editor/components/soo_google_map/component_icon.gif)" title="구글 지도 삽입">지도</a> </div>
				</li>
				<li class="tx-list">
					<div class="tx-btn-trans component_btn"> <a href="#" onclick="return false;" id="component_{$editor_sequence}_poll_maker" style="background-image:url(modules/editor/components/poll_maker/component_icon.gif)" title="설문조사와 투표">투표</a> </div>
				</li>
				<li class="tx-list">
					<div class="tx-btn-trans component_btn"> <a href="#" onclick="return false;" id="component_{$editor_sequence}_emoticon" style="background-image:url(modules/editor/components/emoticon/component_icon.gif)" title="추가 이모티콘">이모티콘</a> </div>
				</li>
				<li cond="$enable_component" class="tx-list tx-list-extra">
					<div unselectable="on" class="tx-btn-nlrbg tx-extra"> <a href="javascript:;" class="tx-icon" title="도구 더보기">도구 더보기</a> </div>
					<ul class="tx-extra-menu tx-menu" style="right:2px;left:auto" unselectable="on">
						<!--@foreach($component_list as $component_name => $component)-->
						<li class="component_btn"><a href="#" onclick="return false;" id="component_{$editor_sequence}_{$component_name}" style="background-image:url(modules/editor/components/{$component_name}/component_icon.gif)">{$component->title}</a></li>
						<!--@end-->
					</ul>
				</li>
			</ul>
			<!-- 끝 : 커스텀 -->
			
			<!-- 사이드바 / 우측영역 -->
			<ul class="tx-bar tx-bar-right">
				<li class="tx-list">
					<div unselectable="on" class="tx-btn-lrbg tx-fullscreen" id="tx_fullscreen{$editor_sequence}"> <a href="javascript:;" class="tx-icon" title="넓게쓰기 (Ctrl+M)">넓게쓰기</a> </div>
				</li>
			</ul>
			<ul class="tx-bar tx-bar-right tx-nav-opt">
				<li class="tx-list">
					<div unselectable="on" class="tx-switchtoggle" id="tx_switchertoggle{$editor_sequence}"> <a href="javascript:;" title="에디터 타입">에디터</a> </div>
				</li>
			</ul>
		</div>
	</div>
	
	<!-- 툴바 - 기본 시작 -->
	<div id="tx_toolbar_basic{$editor_sequence}" class="tx-toolbar tx-toolbar-basic">
		<div class="tx-toolbar-boundary">
			<ul class="tx-bar tx-bar-left">
				<li class="tx-list">
					<div id="tx_fontfamily{$editor_sequence}" unselectable="on" class="tx-slt-70bg tx-fontfamily"> <a href="javascript:;" title="글꼴">굴림</a> </div>
					<div id="tx_fontfamily_menu{$editor_sequence}" class="tx-fontfamily-menu tx-menu" unselectable="on"></div>
				</li>
			</ul>
			<ul class="tx-bar tx-bar-left">
				<li class="tx-list">
					<div unselectable="on" class="tx-slt-42bg tx-fontsize" id="tx_fontsize{$editor_sequence}"> <a href="javascript:;" title="글자크기">9pt</a> </div>
					<div id="tx_fontsize_menu{$editor_sequence}" class="tx-fontsize-menu tx-menu" unselectable="on"></div>
				</li>
			</ul>
			<ul class="tx-bar tx-bar-left tx-group-font">
				<li class="tx-list">
					<div unselectable="on" class="tx-btn-lbg tx-bold" id="tx_bold{$editor_sequence}"> <a href="javascript:;" class="tx-icon" title="굵게 (Ctrl+B)">굵게</a> </div>
				</li>
				<li class="tx-list">
					<div unselectable="on" class="tx-btn-bg tx-underline" id="tx_underline{$editor_sequence}"> <a href="javascript:;" class="tx-icon" title="밑줄 (Ctrl+U)">밑줄</a> </div>
				</li>
				<li class="tx-list">
					<div unselectable="on" class="tx-btn-bg tx-italic" id="tx_italic{$editor_sequence}"> <a href="javascript:;" class="tx-icon" title="기울임 (Ctrl+I)">기울임</a> </div>
				</li>
				<li class="tx-list">
					<div unselectable="on" class="tx-btn-bg tx-strike" id="tx_strike{$editor_sequence}"> <a href="javascript:;" class="tx-icon" title="취소선 (Ctrl+D)">취소선</a> </div>
				</li>
				<li class="tx-list">
					<div unselectable="on" class="tx-slt-tbg tx-forecolor" id="tx_forecolor{$editor_sequence}"> <a href="javascript:;" class="tx-icon" title="글자색">글자색</a> <a href="javascript:;" class="tx-arrow" title="글자색 선택">글자색 선택</a> </div>
					<div id="tx_forecolor_menu{$editor_sequence}" class="tx-menu tx-forecolor-menu tx-colorpallete" unselectable="on"></div>
				</li>
				<li class="tx-list">
					<div unselectable="on" class="tx-slt-brbg tx-backcolor" id="tx_backcolor{$editor_sequence}"> <a href="javascript:;" class="tx-icon" title="글자 배경색">글자 배경색</a> <a href="javascript:;" class="tx-arrow" title="글자 배경색 선택">글자 배경색 선택</a> </div>
					<div id="tx_backcolor_menu{$editor_sequence}" class="tx-menu tx-backcolor-menu tx-colorpallete" unselectable="on"></div>
				</li>
			</ul>
			<ul class="tx-bar tx-bar-left tx-group-align">
				<li class="tx-list">
					<div unselectable="on" class="tx-btn-lbg tx-alignleft" id="tx_alignleft{$editor_sequence}"> <a href="javascript:;" class="tx-icon" title="왼쪽정렬 (Ctrl+,)">왼쪽정렬</a> </div>
				</li>
				<li class="tx-list">
					<div unselectable="on" class="tx-btn-bg tx-aligncenter" id="tx_aligncenter{$editor_sequence}"> <a href="javascript:;" class="tx-icon" title="가운데정렬 (Ctrl+.)">가운데정렬</a> </div>
				</li>
				<li class="tx-list">
					<div unselectable="on" class="tx-btn-bg tx-alignright" id="tx_alignright{$editor_sequence}"> <a href="javascript:;" class="tx-icon" title="오른쪽정렬 (Ctrl+/)">오른쪽정렬</a> </div>
				</li>
				<li class="tx-list">
					<div unselectable="on" class="tx-btn-rbg tx-alignfull" id="tx_alignfull{$editor_sequence}"> <a href="javascript:;" class="tx-icon" title="양쪽정렬">양쪽정렬</a> </div>
				</li>
			</ul>
			<ul class="tx-bar tx-bar-left tx-group-tab">
				<li class="tx-list">
					<div unselectable="on" class="tx-btn-lbg tx-indent" id="tx_indent{$editor_sequence}"> <a href="javascript:;" title="들여쓰기 (Tab)" class="tx-icon">들여쓰기</a> </div>
				</li>
				<li class="tx-list">
					<div unselectable="on" class="tx-btn-rbg tx-outdent" id="tx_outdent{$editor_sequence}"> <a href="javascript:;" title="내어쓰기 (Shift+Tab)" class="tx-icon">내어쓰기</a> </div>
				</li>
			</ul>
			<ul class="tx-bar tx-bar-left tx-group-list">
				<li class="tx-list">
					<div unselectable="on" class="tx-slt-31lbg tx-lineheight" id="tx_lineheight{$editor_sequence}"> <a href="javascript:;" class="tx-icon" title="줄간격">줄간격</a> <a href="javascript:;" class="tx-arrow" title="줄간격">줄간격 선택</a> </div>
					<div id="tx_lineheight_menu{$editor_sequence}" class="tx-lineheight-menu tx-menu" unselectable="on"></div>
				</li>
				<li class="tx-list">
					<div unselectable="on" class="tx-slt-31rbg tx-styledlist" id="tx_styledlist{$editor_sequence}"> <a href="javascript:;" class="tx-icon" title="리스트">리스트</a> <a href="javascript:;" class="tx-arrow" title="리스트">리스트 선택</a> </div>
					<div id="tx_styledlist_menu{$editor_sequence}" class="tx-styledlist-menu tx-menu" unselectable="on"></div>
				</li>
			</ul>
			<ul class="tx-bar tx-bar-left tx-group-etc">
				<li class="tx-list">
					<div unselectable="on" class="tx-btn-lbg tx-emoticon" id="tx_emoticon{$editor_sequence}"> <a href="javascript:;" class="tx-icon" title="이모티콘">이모티콘</a> </div>
					<div id="tx_emoticon_menu{$editor_sequence}" class="tx-emoticon-menu tx-menu" unselectable="on"></div>
				</li>
				<li class="tx-list">
					<div unselectable="on" class="tx-btn-bg tx-link" id="tx_link{$editor_sequence}"> <a href="javascript:;" class="tx-icon" title="링크 (Ctrl+K)">링크</a> </div>
					<div id="tx_link_menu{$editor_sequence}" class="tx-link-menu tx-menu"></div>
				</li>
				<li class="tx-list">
					<div unselectable="on" class="tx-btn-bg tx-specialchar" id="tx_specialchar{$editor_sequence}"> <a href="javascript:;" class="tx-icon" title="특수문자">특수문자</a> </div>
					<div id="tx_specialchar_menu{$editor_sequence}" class="tx-specialchar-menu tx-menu"></div>
				</li>
				<li class="tx-list">
					<div unselectable="on" class="tx-btn-bg tx-table" id="tx_table{$editor_sequence}"> <a href="javascript:;" class="tx-icon" title="표만들기">표만들기</a> </div>
					<div id="tx_table_menu{$editor_sequence}" class="tx-table-menu tx-menu" unselectable="on">
						<div class="tx-menu-inner">
							<div class="tx-menu-preview"></div>
							<div class="tx-menu-rowcol"></div>
							<div class="tx-menu-deco"></div>
							<div class="tx-menu-enter"></div>
						</div>
					</div>
				</li>
				<li class="tx-list">
					<div unselectable="on" class="tx-btn-rbg tx-horizontalrule" id="tx_horizontalrule{$editor_sequence}"> <a href="javascript:;" class="tx-icon" title="구분선">구분선</a> </div>
					<div id="tx_horizontalrule_menu{$editor_sequence}" class="tx-horizontalrule-menu tx-menu" unselectable="on"></div>
				</li>
			</ul>
			<ul class="tx-bar tx-bar-left">
				<li class="tx-list">
					<div unselectable="on" class="tx-btn-lbg tx-richtextbox" id="tx_richtextbox{$editor_sequence}"> <a href="javascript:;" class="tx-icon" title="글상자">글상자</a> </div>
					<div id="tx_richtextbox_menu{$editor_sequence}" class="tx-richtextbox-menu tx-menu">
						<div class="tx-menu-header">
							<div class="tx-menu-preview-area">
								<div class="tx-menu-preview"></div>
							</div>
							<div class="tx-menu-switch">
								<div class="tx-menu-simple tx-selected"><a><span>간단 선택</span></a></div>
								<div class="tx-menu-advanced"><a><span>직접 선택</span></a></div>
							</div>
						</div>
						<div class="tx-menu-inner"> </div>
						<div class="tx-menu-footer"> <img class="tx-menu-confirm" src="./images/icon/editor/btn_confirm.gif?rv=1.0.1" alt=""/> <img class="tx-menu-cancel" hspace="3" src="./images/icon/editor/btn_cancel.gif?rv=1.0.1" alt=""/> </div>
					</div>
				</li>
				<li class="tx-list">
					<div unselectable="on" class="tx-btn-bg tx-quote" id="tx_quote{$editor_sequence}"> <a href="javascript:;" class="tx-icon" title="인용구 (Ctrl+Q)">인용구</a> </div>
					<div id="tx_quote_menu{$editor_sequence}" class="tx-quote-menu tx-menu" unselectable="on"></div>
				</li>
				<li class="tx-list">
					<div unselectable="on" class="tx-btn-rbg tx-dictionary" id="tx_dictionary{$editor_sequence}"> <a href="javascript:;" class="tx-icon" title="사전">사전</a> </div>
				</li>
			</ul>
			<ul class="tx-bar tx-bar-left tx-group-undo">
				<li class="tx-list">
					<div unselectable="on" class="tx-btn-lbg tx-undo" id="tx_undo{$editor_sequence}"> <a href="javascript:;" class="tx-icon" title="실행취소 (Ctrl+Z)">실행취소</a> </div>
				</li>
				<li class="tx-list">
					<div unselectable="on" class="tx-btn-rbg tx-redo" id="tx_redo{$editor_sequence}"> <a href="javascript:;" class="tx-icon" title="다시실행 (Ctrl+Y)">다시실행</a> </div>
				</li>
			</ul>
			<ul class="tx-bar tx-bar-right">
				<li class="tx-list">
					<div unselectable="on" class="tx-btn-nlrbg tx-advanced" id="tx_advanced{$editor_sequence}"> <a href="javascript:;" class="tx-icon" title="툴바 더보기">툴바 더보기</a> </div>
				</li>
			</ul>
		</div>
	</div>
	<!-- 툴바 - 기본 끝 --> 
	<!-- 툴바 - 더보기 시작 -->
	<div id="tx_toolbar_advanced{$editor_sequence}" class="tx-toolbar tx-toolbar-advanced">
		<div class="tx-toolbar-boundary">
			<ul class="tx-bar tx-bar-left">
				<li class="tx-list">
					<div class="tx-tableedit-title"></div>
				</li>
			</ul>
			<ul class="tx-bar tx-bar-left tx-group-align">
				<li class="tx-list">
					<div unselectable="on" class="tx-btn-lbg tx-mergecells" id="tx_mergecells{$editor_sequence}"> <a href="javascript:;" class="tx-icon2" title="병합">병합</a> </div>
					<div id="tx_mergecells_menu{$editor_sequence}" class="tx-mergecells-menu tx-menu" unselectable="on"></div>
				</li>
				<li class="tx-list">
					<div unselectable="on" class="tx-btn-bg tx-insertcells" id="tx_insertcells{$editor_sequence}"> <a href="javascript:;" class="tx-icon2" title="삽입">삽입</a> </div>
					<div id="tx_insertcells_menu{$editor_sequence}" class="tx-insertcells-menu tx-menu" unselectable="on"></div>
				</li>
				<li class="tx-list">
					<div unselectable="on" class="tx-btn-rbg tx-deletecells" id="tx_deletecells{$editor_sequence}"> <a href="javascript:;" class="tx-icon2" title="삭제">삭제</a> </div>
					<div id="tx_deletecells_menu{$editor_sequence}" class="tx-deletecells-menu tx-menu" unselectable="on"></div>
				</li>
			</ul>
			<ul class="tx-bar tx-bar-left tx-group-align">
				<li class="tx-list">
					<div id="tx_cellslinepreview{$editor_sequence}" unselectable="on" class="tx-slt-70lbg tx-cellslinepreview"> <a href="javascript:;" title="선 미리보기"></a> </div>
					<div id="tx_cellslinepreview_menu{$editor_sequence}" class="tx-cellslinepreview-menu tx-menu" unselectable="on"></div>
				</li>
				<li class="tx-list">
					<div id="tx_cellslinecolor{$editor_sequence}" unselectable="on" class="tx-slt-tbg tx-cellslinecolor"> <a href="javascript:;" class="tx-icon2" title="선색">선색</a>
						<div class="tx-colorpallete" unselectable="on"></div>
					</div>
					<div id="tx_cellslinecolor_menu{$editor_sequence}" class="tx-cellslinecolor-menu tx-menu tx-colorpallete" unselectable="on"></div>
				</li>
				<li class="tx-list">
					<div id="tx_cellslineheight{$editor_sequence}" unselectable="on" class="tx-btn-bg tx-cellslineheight"> <a href="javascript:;" class="tx-icon2" title="두께">두께</a> </div>
					<div id="tx_cellslineheight_menu{$editor_sequence}" class="tx-cellslineheight-menu tx-menu" unselectable="on"></div>
				</li>
				<li class="tx-list">
					<div id="tx_cellslinestyle{$editor_sequence}" unselectable="on" class="tx-btn-bg tx-cellslinestyle"> <a href="javascript:;" class="tx-icon2" title="스타일">스타일</a> </div>
					<div id="tx_cellslinestyle_menu{$editor_sequence}" class="tx-cellslinestyle-menu tx-menu" unselectable="on"></div>
				</li>
				<li class="tx-list">
					<div id="tx_cellsoutline{$editor_sequence}" unselectable="on" class="tx-btn-rbg tx-cellsoutline"> <a href="javascript:;" class="tx-icon2" title="테두리">테두리</a> </div>
					<div id="tx_cellsoutline_menu{$editor_sequence}" class="tx-cellsoutline-menu tx-menu" unselectable="on"></div>
				</li>
			</ul>
			<ul class="tx-bar tx-bar-left">
				<li class="tx-list">
					<div id="tx_tablebackcolor{$editor_sequence}" unselectable="on" class="tx-btn-lrbg tx-tablebackcolor"
					style="background-color:#9aa5ea;"> <a href="javascript:;" class="tx-icon2" title="테이블 배경색">테이블 배경색</a> </div>
					<div id="tx_tablebackcolor_menu{$editor_sequence}" class="tx-tablebackcolor-menu tx-menu tx-colorpallete" unselectable="on"></div>
				</li>
			</ul>
			<ul class="tx-bar tx-bar-left">
				<li class="tx-list">
					<div id="tx_tabletemplate{$editor_sequence}" unselectable="on" class="tx-btn-lrbg tx-tabletemplate"> <a href="javascript:;" class="tx-icon2" title="테이블 서식">테이블 서식</a> </div>
					<div id="tx_tabletemplate_menu{$editor_sequence}" class="tx-tabletemplate-menu tx-menu tx-colorpallete" unselectable="on"></div>
				</li>
			</ul>
		</div>
	</div>
	<!-- 툴바 - 더보기 끝 --> 
	<!-- 편집영역 시작 --> 
	<!-- 에디터 Start -->
	<div id="tx_canvas{$editor_sequence}" class="tx-canvas">
		<div id="tx_loading{$editor_sequence}" class="tx-loading">
			<div><img src="images/icon/editor/loading2.png" width="113" height="21" align="absmiddle"/></div>
		</div>
		<div id="tx_canvas_wysiwyg_holder{$editor_sequence}" class="tx-holder" style="display:block;">
			<iframe id="editor_iframe_{$editor_sequence}" name="tx_canvas_wysiwyg" allowtransparency="true" frameborder="0" style="height:{$editor_height}px;" src="{$request_uri}modules/editor/styles/{$content_style}/editor.html"></iframe>
		</div>
		<div class="tx-source-deco">
			<div id="tx_canvas_source_holder{$editor_sequence}" class="tx-holder">
				<textarea id="editor_textarea_{$editor_sequence}" rows="30" cols="30"></textarea>
			</div>
		</div>
		<div id="tx_canvas_text_holder{$editor_sequence}" class="tx-holder">
			<textarea id="tx_canvas_text{$editor_sequence}" name="tx_{$editor_content_key_name}" rows="30" cols="30"></textarea>
		</div>
	</div>
	
	<!-- 높이조절 Start -->
	<div id="tx_resizer{$editor_sequence}" class="tx-resize-bar">
		<div class="tx-resize-bar-bg"></div>
		<img id="tx_resize_holder{$editor_sequence}" src="images/icon/editor/skin/01/btn_drag01.gif" width="58" height="12" unselectable="on" alt="" /> </div>
	<!-- 편집영역 끝 -->
	<!-- 첨부박스 시작 -->
	<!--@if($allow_fileupload)-->
<!-- 커스텀 -->
<load target="./_custom/uploader.js" type='body' />
<load target="../../tpl/js/swfupload.js" type='body' />
<!-- 끝 : 커스텀 -->
	<div id="tx_attach_div{$editor_sequence}" class="tx-attach-div">
		<div id="fileUploader_{$editor_sequence}">
			<div id="tx_attach_box{$editor_sequence}" class="tx-attach-box">
				<div id="tx_attach_preview{$editor_sequence}" class="tx-attach-box-inner">
					<div id="preview_uploaded_{$editor_sequence}" class="tx-attach-preview">
						<img src="images/icon/editor/pn_preview.gif" width="108" height="108" unselectable="on"/>
					</div>
					<div class="tx-attach-main">
						<div id="tx_upload_progress{$editor_sequence}" class="tx-upload-progress">
							<div>0%</div>
							<p>파일을 업로드하는 중입니다.</p>
						</div>
						<!-- 커스텀 -->
						<ul id="tx_attach_list{$editor_sequence}" class="tx-attach-top">
							<li id="tx_attach_delete{$editor_sequence}" onclick="removeUploadedFile('{$editor_sequence}');"><a class="btn" href="javascript:;">{$lang->edit->delete_selected}</a></li>
							<li id="tx_attach_link{$editor_sequence}" onclick="insertUploadedFile('{$editor_sequence}');"><a class="btn" href="javascript:;">{$lang->edit->link_file}</a></li>
							<li id="tx_attach_size{$editor_sequence}" class="tx-attach-size"> {$upload_status} </li>
							<li id="tx_attach_tools{$editor_sequence}" class="tx-attach-tools"> </li>
						</ul>
						<select id="uploaded_file_list_{$editor_sequence}" multiple="multiple" class="tx-attach-list"></select>
						<!-- 끝 : 커스텀 -->
					</div>
				</div>
			</div>
		</div>
	</div>
	<!--@end--> 
	<!-- 첨부박스 끝 -->
</div>
<!-- 에디터 컨테이너 끝 --> 
<!-- 에디터 끝 -->

<div class="xe_content" style=""></div>

<script type="text/javascript">//<![CDATA[
var _target_form;
jQuery(function(){
	_target_form = jQuery('#tx_trex_container').parents('form').attr('id');
	if(_target_form == '' || _target_form == 'undefined' ||  _target_form == null) {
		jQuery('#tx_trex_container').parents('form').attr('id', 'editorForm_{$editor_sequence}');
		_target_form = jQuery('#tx_trex_container').parents('form').attr('id');
	}
	xe_daumeditor_init("{$editor_sequence}", "{$editor_primary_key_name}", "{$editor_content_key_name}");

	var config = {
		txHost: '{$request_uri}', /* 런타임 시 리소스들을 로딩할 때 필요한 부분으로, 경로가 변경되면 이 부분 수정이 필요. ex) http://xxx.xxx.com */
		txPath: '{$editor_path}', /* 런타임 시 리소스들을 로딩할 때 필요한 부분으로, 경로가 변경되면 이 부분 수정이 필요. ex) /xxx/xxx/ */
		txDecoPath: '{$request_uri}{$editor_path}images/deco/contents/',
		txIconPath: '{$request_uri}{$editor_path}images/icon/editor/', 
		txService: 'daumeditor', /* 수정필요없음. */
		txProject: 'daumeditor', /* 수정필요없음. 프로젝트가 여러개일 경우만 수정한다. */
		initializedId: "{$editor_sequence}", /* 대부분의 경우에 빈문자열 */
		wrapper: "tx_trex_container", /* 에디터를 둘러싸고 있는 레이어 이름(에디터 컨테이너) */
		form: _target_form, /* 등록하기 위한 Form 이름 */
		canvas: {
			styles: {
<!-- 커스텀 -->
				fontFamily: ""+jQuery('div.xe_content').css('fontFamily')+"", /* 기본 글자체 */
				padding: "8px", /* 위지윅 영역의 여백 */
				height: "{$editor_height-16}px"
<!-- 끝 : 커스텀 -->
			},
			showGuideArea: false
		},
		events: {
			preventUnload: false
		},
		sidebar: {
			attachbox: {
				show: true
			}
		},
	};

	jQuery('#uploaded_file_list_{$editor_sequence}').live('click', function() {
		jQuery('#tx_attach_div{$editor_sequence}').show();
	});
	
	EditorJSLoader.ready(function(Editor) {
		var editor = new Editor(config);
		var editor_sequence = {$editor_sequence};
		if(jQuery('#'+_target_form).find('[name=content]').val()) {
			Editor.modify({
				"content": jQuery('#'+_target_form).find('[name=content]').val() /* 내용 문자열, 주어진 필드(textarea) 엘리먼트 */
			});
		}
		editorRelKeys[editor_sequence]['editor'] = Editor;
		editorRelKeys[editor_sequence]['editor'].getFrame = function(editor_sequence) {
			return document.getElementById( 'editor_iframe_'+ editor_sequence );
		};
	});

	<!--@if($allow_fileupload)-->
	editorUploadInit({
				"editorSequence" : {$editor_sequence},
				"sessionName" : "{session_name()}",
				"allowedFileSize" : "{$file_config->allowed_filesize}",
				"allowedFileTypes" : "{$file_config->allowed_filetypes}",
				"allowedFileTypesDescription" : "{$file_config->allowed_filetypes}",
				"insertedFiles" : {(int)$files_count},
				"replaceButtonID" : "swfUploadButton{$editor_sequence}",
				"fileListAreaID" : "uploaded_file_list_{$editor_sequence}",
				"previewAreaID" : "preview_uploaded_{$editor_sequence}",
				"uploaderStatusID" : "uploader_status_{$editor_sequence}"
	});
	<!--@end-->
});
//]]></script>